<? $this -> load -> view('header');?>
<script type="text/javascript" src="<?=base_url()?>js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?=base_url()?>js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?=base_url()?>js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script>
	$(document).ready(function() {
		$("#various2").fancybox({
			'autoScale':false,
			'onClosed': function() { 
			   getDataAllData();
			 } 
		});

		getDataAllData();
	
	});
	
	function getDataAllData(){
		$('#datacontent').html("");
			$.get("<?=$current_module?>/getland_data", function(data){
				$('#datacontent').html(data);
			});
	}
	
	function delete(id){
		
		$.post("<?=$current_module?>/deleteland", { landid:id},
		function(data) {
			alert(data);
			getDataAllData();
		});
	}
	
	

</script>
<div id="middle">
	<? $this -> load -> view('land/left_menu');?>
	<div id="center-column">
		<div class="top-bar">
			<a href="<?=$current_module?>/popup_uploadland" id="various2" class="button">ADD NEW </a>
			<h1>Land (โฉนด)</h1>
		</div>
		<div class="select-bar">
			<p>
				<label>
					<input type="text" name="แสดงไฟล์ที่ upload" />
				</label>
				<label>
					<input type="submit" name="Submit" value="Edit info" />
				</label>
			</p>
		</div>
	
		<div class="table" id="datacontent"></div>
	</div>
	<div id="right-column">
		<strong class="h">Quick Info</strong>
		<div class="box">
			This is your admin home page. It will give you access to all things within the back end system that you will need to facilitate a smooth operation.
		</div>
	</div>
</div>
<? $this -> load -> view('footer');?>